package com.gress.shop.service.mail.impl;

import com.gress.shop.service.mail.IMailService;
import com.gress.shop.util.HappyException;
import com.gress.shop.vo.SwalReturn;
import org.springframework.stereotype.Service;

import javax.mail.MessagingException;
import java.util.Map;


/**
 * QQ 邮件发送服务
 * @Desc
 */
@Deprecated
public class QQMailServiceImpl extends AbstractMailService {

    @Override
    public SwalReturn send(String to, String subject, String text) {
        throw new HappyException("占不支持QQ邮件");
    }


    @Override
    public SwalReturn sendTemplateText(String to, String templateName, String subject, Map model) {
        throw new HappyException("占不支持QQ邮件");
    }

    @Override
    public SwalReturn sendTemplateHtml(String to, String templateName, String subject, Map model) throws MessagingException {
        throw new HappyException("占不支持QQ邮件");
    }
}
